<template>
  <div>
    <a>首页</a>
    <a>API监控</a>
    <a>API统计</a>
    <a>API管理</a>
    <div class="block">
      <el-pagination
        @size-change="handleSizeChange"
        @current-change="handleCurrentChange"
        :current-page="currentPage"
        :page-sizes="[100, 200, 300, 400]"
      :page-size="100"
      layout="total, sizes, prev, pager, next, jumper"
      :total="400"
      >
      </el-pagination>
    </div>
  </div>
</template>

<script>
export default {
  name: 'Home',
  methods: {
    handleSizeChange (val) {
      console.log(`每页 ${val} 条`)
    },
    handleCurrentChange (val) {
      console.log(`当前页: ${val}`)
    }
  },
  data () {
    return {
      total: '0',
      currentPage: 4
    }
  }
}
</script>

<style scoped>

</style>
